home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1997 August
/
Oasis demo.iso
/
Internet
/
Wincim
/
16bit
/
SCRIPTS.LIB
/
FENICS.SCR
< prev
next >
Wrap
Text File
|
1996-09-23
|
2KB
|
74 lines
!
! Copyright (c) 1995
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! FENICS:
! Connect to FENICS through either NIFTY LL or CompuPass.
! Arg1 contains TRUE if connect is to NIFTY LL and FALSE otherwise
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.9.1"
!-V
Host_Sent = %FALSE;
if Arg1 goto Define_NIF_Strings;
ConnectStr = "Connecting to CompuPass";
FailStr = "CompuPass not responding";
HostStr = "C CIS" & %CR;
goto Start_FENICS;
Define_NIF_Strings:
ConnectStr = "Connecting to NIFTY LL";
FailStr = "NIFTY LL not responding";
HostStr = "C CPS" & %CR;
Start_FENICS:
show ConnectStr;
Tries = 5;
on cancel goto Return_Cancel;
Wait_FENICS:
if Tries = 0 goto FENICS_Failure;
Tries = Tries - 1;
wait
"ready" goto Send_FENICS_Host,
%mdm_Failure goto NO_Carrier,
"User ID:" goto Check_Success,
"Host Name:" goto Check_Success
until 80;
send %CR & %CR & %CR;
Host_Sent = %FALSE;
goto Wait_FENICS;
Send_FENICS_Host:
if Host_Sent goto Wait_FENICS;
send HostStr;
Host_Sent = %TRUE;
goto Wait_FENICS;
Check_Success:
if Host_Sent goto Return_Success;
goto Wait_FENICS;
NO_Carrier:
FailStr = "Modem connection lost";
FENICS_Failure:
define %FailureMsg = FailStr;
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
send %CR;
exit %Success;